package com.gln.bloger.service;

import java.util.List;

import com.gln.bloger.exception.BlogerException;
import com.gln.bloger.pojos.User;
import com.gln.bloger.pojos.Website;

public interface WebsiteService {

	/**
	 * get web site by creator name
	 * @param creatorName
	 * @return
	 * @throws BlogerException
	 */
	public List<Website> getWebsites(User creator) throws BlogerException;
	/**
	 * get web site by handle
	 * @param handle
	 * @return
	 * @throws BlogerException
	 */
	public Website getWebsite(String handle) throws BlogerException;
	/**
	 * get web site by id
	 * @param id
	 * @return
	 * @throws BlogerException
	 */
	public Website getWebsiteById(String id) throws BlogerException;

	/**
	 *read available themes
	 * @return
	 * @throws BlogerException
	 */
	public List<String> getThemes() throws BlogerException ;
	/**
	 * save web site 
	 * @param website
	 * @throws BlogerException
	 */
	public void saveOrUpdateWebsite(Website website) throws BlogerException;
}
